<?php
/*
*
*
*/
class request {

	private $rget;
	private $rpost;
	private $rsession; 
	

	function __construct(){
		$this->rget=$_GET;
		$this->rpost=$_POST;
		$this->rsession=$_SESSION;		
	}
	
	function getParam($param){
		//retorna el get
		if (isset($this->rget[$param])){
			return $this->rget[$param];		
		}
		//retorna el post
		elseif (isset($this->rpost[$param])) {
			return $this->rpost[$param];
		}
		else
			return null;
	}
	
	function getSessionParam($param){
		if (isset($this->rsession[$param])){
			$this->rsession[$param];
		}
		else 
			return null;
	}	
}
?>